package com.dykj.fireFighting.api.base.news.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "阿里短信语音")
@TableName("ali_message")
public class AliMessage extends Model<AliMessage> {

    @TableId
    private String id;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    @TableField("create_by")
    private String createBy;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Date createTime;

    /**
     * 删除标识 0已删除 1未删除
     */
    @ApiModelProperty(value = "删除标识 0已删除 1未删除")
    @TableField("is_del")
    private Integer isDel;

    /**
     * 内容
     */
    @ApiModelProperty(value = "电话")
    private String phone;
    /**
     * 内容
     */
    @ApiModelProperty(value = "内容")
    private String message;
    /**
     * 内容
     */
    @ApiModelProperty(value = "备注")
    private String remark;

//    @ApiModelProperty(value = "单位名称")
//    @TableField(exist = false)
//    private String unitName;

    @ApiModelProperty(value = "消息类型，1为短信消息，2为语音消息")
    @TableField("messagetype")
    private String messageType;

    @ApiModelProperty(value = "社会单位id")
    @TableField("unitid")
    private String unitid;

    @ApiModelProperty(value = "单位名称")
    @TableField("unitname")
    private String unitName;

    @ApiModelProperty(value = "接收人姓名")
    @TableField("receiver")
    private String receiver;

    @ApiModelProperty(value = "设备名")
    @TableField("devicename")
    private String deviceName;

    @ApiModelProperty(value = "业务编号")
    @TableField("bizid")
    private String bizId;

    @ApiModelProperty(value = "短信发送状态 1：等待回执 2：发送失败 3：发送成功")
    @TableField("sendstatus")
    private String sendStatus;
}
